Skip to main content

Delete File

AutomatR.Dropbox.Activities.DeleteFile

The "Delete File" activity in AutomatR is part of the Dropbox.Files activities package, facilitating the deletion of a file in the user's Dropbox. This activity streamlines file management tasks in Dropbox, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
File PathSpecifies the full path of the file to be deleted from Dropbox, including the file name (e.g., "Root/DeleteFile/File1.txt"). String variables containing the file path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Delete File" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the delay is 5 seconds, enter "5".
Output
ResultReturns true or false depending on the success of the file deletion. Variables of type bool to store the operation result.

How to Use

  1. Drag and drop the "Delete File" activity onto the workflow.
  2. Configure the properties by specifying the full path of the file to be deleted from Dropbox.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to delete the specified file from Dropbox.

Example

Consider an example where the "Delete File" activity is used to delete a file named "File1.txt" within a folder named "DeleteFile" in Dropbox:

Delete File:
Display Name: "Delete Document"
File Path: "Root/DeleteFile/File1.txt"
Result: isDeleteSuccessful

In this example, the activity deletes the "File1.txt" from the "DeleteFile" directory in Dropbox. The result of the operation (success or failure) is stored in the Boolean variable "isDeleteSuccessful" for further handling in the workflow.